package com.chao.dataObject;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * 订单详情
 */
@Data
@Entity
@Table(name = "order_detail")
public class OrderDetail {

    /** 订单详情 id. */
    @Id
    private String detailId;

    /** 订单 id. */
    private String orderId;

    /** 商品 id. */
    @Column(name = "product_id", columnDefinition = "varchar(32")
    private String productId;

    /** 商品名称. */
    private String productName;

    /** 商品价格. */
    private BigDecimal productPrice;

    /** 商品数量. */
    private Integer productQuantity;

    /** 商品小图. */
    private String productIcon;

    /** 创建时间. */

}
